package com.jiayou.config.vertx.handler.jwt

import io.vertx.core.json.JsonObject
import io.vertx.ext.auth.JWTOptions
import io.vertx.ext.web.RoutingContext

/**
@author lishuang
@data   2021-07-19  12:06:54
@info
 */
class SimpleAuthenticationHandlerImpl : AuthenticationHandler {
    override fun doAuthentication(principal: String, credentials: String, routingContext: RoutingContext): Boolean {
        return "admin" == routingContext.request().getParam("username") &&
                "admin" == routingContext.request().getParam("password")
    }
}